package com.onlyyou.custom.enums;

import lombok.Getter;

/**
 * @Author: 小野
 * @Date: 2020/1/12 15:53
 */
@Getter
public enum ResultEnum {
    SUCCESS(200,"ok"),
    NO_PERMISSION(401,"无权限"),
    NULL(201,"未找到"),
    ERROR(500,"服务器异常"),
    EXISTING(202,"已存在"),
    PASSWORD_ERROR(203,"密码错误"),
    NO_LOGIN(402,"未登录"),
    SAVE_ERROR(405,"保存失败")
    ;
    private Integer status;
    private String msg;

    ResultEnum(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }
}
